<?php

return [

    /*
     * Laravel-admin name.
     */
    'name' => '陆战传奇 数据平台',

    /*
     * Logo in admin panel header.
     */
    'logo' => '<b>陆战传奇</b> 数据平台',

    /*
     * Mini-logo in admin panel header.
     */
    'logo-mini' => '<b>陆战传奇</b>',

    /*
     * Laravel-admin url prefix.
     */
    'prefix' => 'admin',

    /*
     * Laravel-admin install directory.
     */
    'directory' => app_path('Admin'),

    /*
     * Laravel-admin html title.
     */
    'title' => '陆战传奇数据平台',

    /*
     * Laravel-admin auth setting.
     */
    'auth' => [
        'driver' => 'session',
        'provider' => '',
        'model' => Encore\Admin\Auth\Database\Administrator::class,
    ],

    /*
     * Laravel-admin upload setting.
     */
    'upload' => [

        'disk' => 'admin',

        'directory' => [
            'image' => 'image',
            'file' => 'file',
        ],

        'host' => 'http://localhost:9000/upload/',
    ],


    // Data View
    'data' => [
        'hours' => ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"],

        'operation' => [
            'recharge' => [
                'label' => '用户充值统计'
            ],
            'online' => [
                'label' => '用户在线及时长统计'
            ],
            'registered' => [
                'label' => '用户注册统计'
            ],
            'retained' => [
                'label' => '用户留存统计',
                'condition' => ['日期', '新进用户', '1日留存', '3日留存', '7日留存', '15日留存', '30日留存']
            ],
        ],

        'overview' => [
            'label' => '数据总览',
            'description' => '',
            'types' => [
                'real_data',
                'history_data'
            ]
        ],


        'real_data' => [
            'label' => '实时数据',
        ],
        'history_data' => [
            'label' => '历史数据',
        ],
    ],

    /*
     * Laravel-admin database setting.
     */
    'database' => [

        // Database connection for following tables.
        'connection' => '',

        // User tables and model.
        'users_table' => 'admin_users',
        'users_model' => Encore\Admin\Auth\Database\Administrator::class,

        // Role table and model.
        'roles_table' => 'admin_roles',
        'roles_model' => Encore\Admin\Auth\Database\Role::class,

        // Permission table and model.
        'permissions_table' => 'admin_permissions',
        'permissions_model' => Encore\Admin\Auth\Database\Permission::class,

        // Menu table and model.
        'menu_table' => 'admin_menu',
        'menu_model' => Encore\Admin\Auth\Database\Menu::class,

        // Pivot table for table above.
        'operation_log_table' => 'admin_operation_log',
        'user_permissions_table' => 'admin_user_permissions',
        'role_users_table' => 'admin_role_users',
        'role_permissions_table' => 'admin_role_permissions',
        'role_menu_table' => 'admin_role_menu',

        'years' => ['2017', '2018'],
        'months' => ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'],

        //useraddrmblog
        'user_add_rmb' => [
            'class' => 'App\Models\UserAddRmb',
            'table' => 'useraddrmblog',
            'table_name' => '用户车组充值提升日志',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'addrmb' => 'addrmb',
                'platid' => 'platid',
                'orderstr' => 'orderstr',
                'reserve0' => 'reserve0',
                'reserve1' => 'reserve1',
                'reserve2' => 'reserve2',
                'reserve3' => 'reserve3',
            ],
        ],

        //usercostlog
        'user_cost' => [
            'class' => 'App\Models\UserCost',
            'table' => 'usercostlog',
            'table_name' => '用户消费日志',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'useitemid' => 'useitemid',
                'getitemid' => 'getitemid',
                'rmb' => 'rmb',
                'tkb' => 'tkb',
                'researchexp' => 'researchexp',
                'useitemcount' => 'useitemcount',
                'getitemcount' => 'getitemcount',
                'error' => 'error',
                'usefor' => 'usefor',
            ]
        ],

        //userdrivegrouplog
        'user_drive_group' => [
            'class' => 'App\Models\UserDriveGroup',
            'table' => 'userdrivegrouplog',
            'table_name' => '用户车组经验值提升日志',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'drivegroupid' => 'drivegroupid',
                'drivegroupexp' => 'drivegroupexp',
                'costexp' => 'costexp',
                'tech0levelup' => 'tech0levelup',
                'tech1levelup' => 'tech1levelup',
                'tech2levelup' => 'tech2levelup',
                'tech3levelup' => 'tech3levelup',
                'tech4levelup' => 'tech4levelup',
                'tech5levelup' => 'tech5levelup',
                'reserve0' => 'reserve0',
                'reserve1' => 'reserve1',
            ],
        ],
        //userfightresultlog
        'user_fight_result' => [
            'class' => 'App\Models\UserFightResult',
            'table' => 'userfightresultlog',
            'table_name' => '用户战斗日志记录',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'bwin' => 'bwin',
                'drivegroupid' => 'drivegroupid',
                'gettkb' => 'gettkb',
                'getresearchexp' => 'getresearchexp',
                'getdrivegroupexp' => 'getdrivegroupexp',
                'hittanknum' => 'hittanknum',
                'hithp' => 'hithp',
                'costrmb' => 'costrmb',
                'costtkb' => 'costtkb',
                'tankid' => 'tankid',
                'turretid' => 'turretid',
                'barrelid' => 'barrelid',
                'engineid' => 'engineid',
                'trackid' => 'trackid',
                'firecontrolid' => 'firecontrolid',
                'firmid' => 'firmid',
                'radioid' => 'radioid',
                'scoutid' => 'scoutid',
                'shell0' => 'shell0',
                'shell0count' => 'shell0count',
                'shell1' => 'shell1',
                'shell1count' => 'shell1count',
                'shell2' => 'shell2',
                'shell2count' => 'shell2count',
                'manual0' => 'manual0',
                'manual0count' => 'manual0count',
                'manual1' => 'manual1',
                'manual1count' => 'manual1count',
                'manual2' => 'manual2',
                'manual2count' => 'manual2count',
                'merit' => 'merit',
                'collective' => 'collective',
            ],
        ],

        //userloginlog
        'user_login' => [
            'class' => 'App\Models\UserLogin',
            'table' => 'userloginlog',
            'table_name' => '用户登录记录',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'platid' => 'platid',
                'reserve0' => 'reserve0',
                'reserve1' => 'reserve1',
            ],

        ],

        //userlogouthslog
        'user_logout_hs' => [
            'class' => 'App\Models\UserLogoutHs',
            'table' => 'userlogouthslog',
            'table_name' => '用户登出大厅记录',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'servertype' => 'servertype',
                'onlinetime' => 'onlinetime',
                'onlinenum' => 'onlinenum',
                'reserve0' => 'reserve0',
                'reserve1' => 'reserve1',
            ],
        ],

        //userresearchlog
        'user_research' => [
            'class' => 'App\Models\UserResearch',
            'table' => 'userresearchlog',
            'table_name' => '用户研发记录',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'getitemid' => 'getitemid',
                'costresearchexp' => 'costresearchexp',
                'userresearchexp' => 'userresearchexp',
            ],
        ],

        //usertaskoverlog
        'user_task_over' => [
            'class' => 'App\Models\UserTaskOver',
            'table' => 'usertaskoverlog',
            'table_name' => '用户任务活动日志',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'taskid' => 'taskid',
                'awardtype0' => 'awardtype0',
                'awardcount0' => 'awardcount0',
                'awardtype1' => 'awardtype1',
                'awardcount1' => 'awardcount1',
                'awardtype2' => 'awardtype2',
                'awardcount2' => 'awardcount2',
            ],
        ],

        //usertaskrecvlog
        'user_task_recv' => [
            'class' => 'App\Models\UserTaskRecv',
            'table' => 'usertaskrecvlog',
            'table_name' => '用户任务活动发放日志',
            'columns' => [
                'fromhost' => 'fromhost',
                'receivetime' => 'receivetime',
                'syslogtag' => 'syslogtag',
                'servername' => 'servername',
                'userid' => 'userid',
                'taskid' => 'taskid',
                'reserve0' => 'reserve0',
                'reserve1' => 'reserve1',
                'reserve2' => 'reserve2',
            ],
        ],
    ],

    /*
     * By setting this option to open or close operation log in laravel-admin.
     */
    'operation_log' => true,

    /*
    |---------------------------------------------------------|
    | SKINS         | skin-blue                               |
    |               | skin-black                              |
    |               | skin-purple                             |
    |               | skin-yellow                             |
    |               | skin-red                                |
    |               | skin-green                              |
    |---------------------------------------------------------|
     */
    'skin' => 'skin-blue',

    /*
    |---------------------------------------------------------|
    |LAYOUT OPTIONS | fixed                                   |
    |               | layout-boxed                            |
    |               | layout-top-nav                          |
    |               | sidebar-collapse                        |
    |               | sidebar-mini                            |
    |---------------------------------------------------------|
     */
    'layout' => ['sidebar-mini'],

    /*
     * Version displayed in footer.
     */
    'version' => '1.0',
];
